package dev.hxliu.cn.vo;
import dev.hxliu.cn.inject.InjectValue;
import dev.hxliu.cn.util.PhoneMaskingInject;
import dev.hxliu.cn.method.InjectObj;
import dev.hxliu.cn.util.DataMaskingUtils;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.time.LocalDateTime;
import java.util.List;

@Setter
@Getter
@ToString
public  class MerchantUserPageVO implements InjectObj<MerchantUserPageVO> {

    @InjectValue(value = PhoneMaskingInject.class)
    private String phone;

    @InjectValue(isCover=true)
    private LocalDateTime createTime;
    @Override
    public MerchantUserPageVO inject() {
        this.phone = DataMaskingUtils.phoneMasking(this.phone);
        this.createTime = LocalDateTime.now();
        return this;
    }
}
